Skip to content

Conversation

Priyanshu1303d
Copy link
Contributor

Added the Dial's Algorithm implementation (DialsAlgorithm.java) to the datastructures/graphs package. This algorithm is an efficient optimization of Dijkstra's, making it suitable for specific use cases where edge weights are small non - negative integers.

  • I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md).
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted correctly.

I noticed there are a couple of different directories for graph algorithms. I've placed this implementation in src/main/java/com/thealgorithms/datastructures/graphs/

However, if you would prefer it in another location (like src/main/java/com/thealgorithms/graph/), please let me know, and I would be happy to move it!

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 88.23529% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.78%. Comparing base (9484c7e) to head (0c47828).

Files with missing lines Patch % Lines
...gorithms/datastructures/graphs/DialsAlgorithm.java 88.23% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6679      +/-   ##
============================================
+ Coverage     75.75%   75.78%   +0.02%     
- Complexity     5772     5781       +9     
============================================
  Files           703      704       +1     
  Lines         19777    19811      +34     
  Branches       3832     3841       +9     
============================================
+ Hits          14982    15013      +31     
- Misses         4215     4216       +1     
- Partials        580      582       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Priyanshu1303d Priyanshu1303d force-pushed the feat/DialsAlgorithm branch 3 times, most recently from f7f85bc to 08d5cc5 Compare October 6, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants